package com.etc.pojo;

import lombok.Data;

/**
 * @program: RookieSocialNetworking02
 * @description: 经典评论实体类
 * @author: 梁伟文  修改华珍
 * @create: 2020-08-14 20:20
 **/
@Data
public class SightComment {
    private int commentId;
    private SightDetail sightDetail;
    private User user;
    private String commentDetail;
    private String commentTime;
    private int commentFavor;
    private User commentReply;

    public SightComment(int commentId, SightDetail sightDetail, User user, String commentDetail, String commentTime, int commentFavor, User commentReply) {
        this.commentId = commentId;
        this.sightDetail = sightDetail;
        this.user = user;
        this.commentDetail = commentDetail;
        this.commentTime = commentTime;
        this.commentFavor = commentFavor;
        this.commentReply = commentReply;
    }

    @Override
    public String toString() {
        return "SightComment{" +
                "commentId=" + commentId +
                ", sightDetail=" + sightDetail +
                ", user=" + user +
                ", commentDetail='" + commentDetail + '\'' +
                ", commentTime='" + commentTime + '\'' +
                ", commentFavor=" + commentFavor +
                ", commentReply=" + commentReply +
                '}';
    }

    public SightComment() {
    }


    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public SightDetail getSightDetail() {
        return sightDetail;
    }

    public void setSightDetail(SightDetail sightDetail) {
        this.sightDetail = sightDetail;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getCommentDetail() {
        return commentDetail;
    }

    public void setCommentDetail(String commentDetail) {
        this.commentDetail = commentDetail;
    }

    public String getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(String commentTime) {
        this.commentTime = commentTime;
    }

    public int getCommentFavor() {
        return commentFavor;
    }

    public void setCommentFavor(int commentFavor) {
        this.commentFavor = commentFavor;
    }

    public User getCommentReply() {
        return commentReply;
    }

    public void setCommentReply(User commentReply) {
        this.commentReply = commentReply;
    }
}
